package org.demo.domain.person;

import java.io.Serializable;

public class Person implements Serializable {

	private static final long serialVersionUID = 201203032116L;

	private long id;
	private String firstName = null;
	private String lastName = null;

	public Person() {
		// default constructor
	}

	public Person(long id,String firstName, String lastName) {
		this(firstName, lastName);
		this.id = id;
	}

	public Person(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", firstName=" + firstName + ", lastName="
				+ lastName + "]";
	}




}
